
#ifndef LIST_H
#define LIST_H

#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QListWidget>
#include <QButtonGroup>

class List : public QWidget
{
    Q_OBJECT
public:
    explicit List(QWidget *parent = nullptr);

private:
QVBoxLayout *mainLayout;
QListWidget *listWidget;

signals:

private slots:
    void onCategoryClicked(const QString &category);
    void onYearClicked(const QString &category);

private:
    QButtonGroup *m_tagGroup;
    QButtonGroup *m_yearGroup;

    QPushButton *btnAll1;
    QPushButton *btnAll2;

    int m_tagId{0};
    int m_yearId{0};
};

#endif // LIST_H
